package com.bdqn.common.constant;

public class CommonConstant {
    /**用户常量*/
    public static class USER {
        /**状态*/
        public static class STATUS{
            /**禁用*/
            public static final int DISABLE = 0;
            /**启用*/
            public static final int ENABLE = 1;
        }
    }

    /**权限常量*/
    public static class PERMISSION {

        public static final String TOP_PARENT = "SYSTEM";

        /**类型*/
        public static class TYPE{
            /**菜单*/
            public static final int MENU = 1;
            /**权限*/
            public static final int PERMISSION = 2;
        }
        /**状态*/
        public static class STATUS{
            /**禁用*/
            public static final int DISABLE = 0;
            /**启用*/
            public static final int ENABLE = 1;
        }
    }

    /**用户常量*/
    public static class ROLE {
        /**前缀标识，用于security*/
        public static final String PREFIX = "SYS_ROLE_";
    }

    /**缓存常量*/
    public static class EHCACHE {
        /**前缀标识，用于security*/
        public static final String PERMISSION = "PERMISSION";
    }

    /**缓存类型*/
    public static class CACHETYPE {
        public static final String REDIS = "redis";
        public static final String EHCACHE = "ehcache";
    }

    /**打印模板*/
    public static class PrintTemplate {
        /**打印模板存放的根目录*/
        public static final String DIR = "printTemp";
    }

}
